<template>
    <view class="globe_back">
        <view class="box">
            <view class="fw_bold f_40" v-if="type == 1">用户已付款，等待接单员接单</view>
            <view class="fw_bold f_40" v-if="type == 2">已完成，收益已到账</view>

            <!-- 买家信息 -->
            <view class="buyerInfo">
                <view class="flex name">
                    <view>王先生</view>
                    <view class="phone">181***1210</view>
                </view>
                <view>贵州省贵阳市南明区花果园购物中心1号</view>
            </view>
            <!-- 商品 -->
            <view class="flex back_fff p_24 br_24">
                <view>
                    <image class="shopImg" src="@/static/imgs/img.png" mode="widthFix"></image>
                </view>
                <view>
                    <view class="fw_bold f_32 listTitle">小牛电动 B0都市版新国标...</view>
                    <view class="flex justify_content_between">
                        <view class="cl_999CA3 mr_24 f_28">2021新款;220V</view>
                        <view class="cl_999CA3 mr_24 f_28">x1</view>
                    </view>
                    <view class="flex justify_content_end mt_40 f_28">￥50.25</view>
                </view>
            </view>

            <!-- 接单员 -->
            <view class="flex justify_content_between store" v-if="type == 2">
                <view class="flex">
                    <image class="storeImg" src="@/static/imgs/cqt.png" mode=""></image>
                    <view>
                        <view class="storeTitle">同路仁接单员</view>
                        <view class="salesVolume">
                            <u-rate :count="count" v-model="value" active-color="#FF6401" inactive-color="#F7F7F7" size="16" gutter="2"></u-rate>
                        </view>
                    </view>
                </view>
                <view>
                    <image class="address" src="@/static/imgs/icon_dpdz.png" mode=""></image>
                    <text class="addressText">电话联系</text>
                </view>
            </view>
            <!-- 取货信息 -->
            <view class="detailedBox">
                <view class="flex justify_content_between detailed">
                    <view>取货单号</view>
                    <view>#012</view>
                </view>
                <view class="flex justify_content_between detailed" v-if="type == 1">
                    <view>预计送达时间</view>
                    <view>20:30前</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>买家留言</view>
                    <view>留言详情留言详情留言详情</view>
                </view>
            </view>
            <!-- 金额 -->
            <view class="detailedBox">
                <view class="flex justify_content_between detailed">
                    <view>商品金额</view>
                    <view>￥200.05</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>优惠</view>
                    <view>￥50.05</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>合计</view>
                    <view class="fw_bold" style="color: #ff6401">￥3215.02</view>
                </view>
            </view>
            <view class="detailedBox">
                <view class="flex justify_content_between detailed">
                    <view>订单编号</view>
                    <view>
                        20225113215554
                        <text class="cl_3377FF">复制</text>
                    </view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>创建时间</view>
                    <view>2022-02-10 20:30:56</view>
                </view>
                <view class="flex justify_content_between detailed">
                    <view>付款时间</view>
                    <view>2022-02-10 20:30:56</view>
                </view>
            </view>
        </view>
        <view style="height: 20px"></view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            url: '',
            count: 5,
            value: 5,
            type: 0
        };
    },
    onShow() {
        this.url = this.baseUrl + this.imgPath;
    },
    onLoad(e) {
        this.type = e.type;
    },
    methods: {}
};
</script>

<style scoped lang="scss">
.buyerInfo {
    padding: 24rpx 32rpx;
    background: white;
    border-radius: 24rpx;
    margin: 24rpx 0;
    font-size: 28rpx;
    .name {
        margin-bottom: 16rpx;
    }
    .phone {
        color: #999ca3;
        margin-left: 16rpx;
    }
}
.shopImg {
    width: 200rpx;
    height: 200rpx;
    border-radius: 16rpx;
    margin-right: 24rpx;
}
.listTitle {
    width: 400rpx;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.box {
    padding: 32rpx;
    .addTitle {
        font-size: 40rpx;
        color: #00091a;
        font-weight: bold;
    }
    .addText {
        font-size: 28rpx;
        color: #999ca3;
        margin-top: 16rpx;
    }
    .icon_r {
        width: 32rpx;
        height: 32rpx;
        vertical-align: middle;
        margin-top: 36rpx;
    }
    .address {
        background: white;
        border-radius: 16rpx;
        padding: 24rpx;
    }
    .coupon,
    .detailedBox {
        background: white;
        border-radius: 16rpx;
        padding: 24rpx;
        margin-top: 24rpx;
    }
    .ProductMap {
        width: 200rpx;
        height: 200rpx;
        border-radius: 16rpx;
    }
    .couT {
        width: 30%;
        margin: 16rpx 0;
        color: #333a47;
        font-size: 28rpx;
    }
    .coutext {
        width: 70%;
        padding: 16rpx 0;
        font-size: 28rpx;
        color: #ccced1;
    }
    .couponIcon {
        width: 32rpx;
        height: 32rpx;
        vertical-align: middle;
    }
    .detailed {
        color: #333a47;
        font-size: 28rpx;
        margin-bottom: 32rpx;
    }
}
.button {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16rpx 32rpx;
    background: #ffffff;
    .buy {
        width: 176rpx;
        height: 76rpx;
        line-height: 76rpx;
        text-align: center;
        color: white;
        border-radius: 8rpx;
        background-image: linear-gradient(to right, #ff924d, #ff6401);
    }
}
.title {
    font-size: 28rpx;
    color: #333a47;
}
.info {
    font-size: 28rpx;
    color: #00091a;
    margin-top: 32rpx;
}
.infoimg {
    width: 140rpx;
    height: 140rpx;
    border-radius: 16rpx;
    margin: 24rpx 12rpx;
}
.store {
    padding: 24rpx;
    background: white;
    border-radius: 24rpx;
    margin-top: 30rpx;
}
.storeImg {
    width: 96rpx;
    height: 96rpx;
    border-radius: 16rpx;
    margin-right: 16rpx;
}
.storeTitle {
    color: #00091a;
    font-size: 32rpx;
    margin-bottom: 8rpx;
}
.address {
    width: 48rpx;
    height: 48rpx;
    display: block;
    margin: 0 auto;
}
.addressText {
    color: #999ca3;
    font-size: 24rpx;
}
.salesVolume {
    color: #999ca3;
    font-size: 28rpx;
}
</style>
